import request from '@/utils/request'
import { Form, Row } from 'element-ui'

// 查询会员信息列表
export function listConsumer(query) {
  return request({
    url: '/bath/consumer/list',
    method: 'get',
    params: query
  })
}

// 查询会员信息详细
export function getConsumer(id) {
  return request({
    url: '/bath/consumer/' + id,
    method: 'get'
  })
}

// 新增会员信息
export function addConsumer(data) {
  return request({
    url: '/bath/consumer',
    method: 'post',
    data: data
  })
}


// 修改会员信息
export function updateConsumer(data) {
  return request({
    url: '/bath/consumer',
    method: 'put',
    data: data
  })
}

// 增加次数
export function updateCount(data) {
  return request({
    url: '/bath/consumer/count',
    method: 'put',
    data: data
  })
}


// 删除会员信息
export function delConsumer(id) {
  return request({
    url: '/bath/consumer/' + id,
    method: 'delete'
  })
}

// 导出会员信息
export function exportConsumer(query) {
  return request({
    url: '/bath/consumer/export',
    method: 'get',
    params: query
  })
}